package com.kys.application.dubboConsumer;

import com.kys.dubboInterface.TestInterface;
import com.kys.dubboModule.TestModule;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.AutoConfigureOrder;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class TestConsumer {

    @Resource(name = "testInterface")
    TestInterface testInterface;

    public void userTest(){
        TestModule testModule= testInterface.getTestModule("kys","22");
        System.out.println("前端结果："+testModule.getAge()+"|"+testModule.getName());
    }
}
